// Validate ADD form - configurations
var v = new Validator('configurations-add-form'); v.EnableMsgsTogether();

//v.addValidation('configurations[define_context]', 'required', 'Define Context - please enter data');
v.addValidation('configurations[define_name]', 'required', 'Define Name - please enter data');
v.addValidation('configurations[define_value]', 'required', 'Define Value - please enter data');
v.addValidation('configurations[define_sample]', 'required', 'Define Sample - please enter data');
v.addValidation('configurations[define_handler]', 'required', 'Define Handler - please enter data');
v.addValidation('configurations[define_comments]', 'required', 'Define Comments - please enter data');

/**
* Extra validations - like Agreement
*/
function agreement()
{
	var success = false;
		// checked
		success = true;

	return(success);
}
//v.setAddnlValidationFunction(agreement);

// If jQuery validator is used
// $(document).ready(function(){ $("#configurations-add-form").validate(); });